{extend name="public/base" /} {block name="body"}
<div class="content-tabs">
	<ol class="breadcrumb">
		<li>
			<a href="{:url('index/index')}"><i class="fa fa-home"></i></a>
		</li>
		<li><strong>站点配置</strong></li>
	</ol>
</div>
<div class="row">
	<div class="col-sm-12">
		<div class="ibox float-e-margins">
			{include file="system/top"}
			<div class="ibox-content">
				<form id="myForm" class="form-horizontal m-t" method="post" action="{:url('site')}">
					<div class="form-group">
						<label class="col-sm-3 control-label">网站名称：</label>
						<div class="input-group col-sm-4">
							<input type="text" id="site_config[site_title]" name="site_config[site_title]" value="{$site_config.site_title}" placeholder="网站名称" class="form-control" required>
						</div>
					</div>
					<div class="hr-line-dashed"></div>
					<div class="form-group">
						<label class="col-sm-3 control-label">SEO标题：</label>
						<div class="input-group col-sm-4">
							<input type="text" id="site_config[seo_title]" name="site_config[seo_title]" value="{$site_config.seo_title}" placeholder="SEO标题" class="form-control" />
						</div>
					</div>
					<div class="hr-line-dashed"></div>
					<div class="form-group">
						<label class="col-sm-3 control-label">SEO关键字：</label>
						<div class="input-group col-sm-4">
							<input type="text" id="site_config[seo_keyword]" name="site_config[seo_keyword]" value="{$site_config.seo_keyword}" placeholder="SEO关键字" class="form-control" />
						</div>
					</div>
					<div class="hr-line-dashed"></div>
					<div class="form-group">
						<label class="col-sm-3 control-label">SEO说明：</label>
						<div class="input-group col-sm-4">
							<input type="text" id="site_config[seo_desc]" name="site_config[seo_desc]" value="{$site_config.seo_desc}" placeholder="SEO说明" class="form-control" />
						</div>
					</div>
					<div class="hr-line-dashed"></div>
					<div class="form-group">
						<label class="col-sm-3 control-label">版权信息：</label>
						<div class="input-group col-sm-4">
							<input type="text" id="site_config[copyright]" name="site_config[copyright]" value="{$site_config.copyright}" placeholder="版权信息" class="form-control" />
						</div>
					</div>
					<div class="hr-line-dashed"></div>
					<div class="form-group">
						<label class="col-sm-3 control-label">开启调试：</label>
						<div class="input-group col-sm-4">
							<div class="onoffswitch">
                                <input name="app_debug" id="app_debug" type="checkbox" {if $site_config.app_debug}checked{/if} class="onoffswitch-checkbox">
                                <label class="onoffswitch-label" for="app_debug">
                                    <span class="onoffswitch-inner"></span>
                                    <span class="onoffswitch-switch"></span>
                                </label>
                            </div>
						</div>
					</div>
					<div class="hr-line-dashed"></div>
					<div class="form-group">
						<label class="col-sm-3 control-label">调试Trace：</label>
						<div class="input-group col-sm-4">
							<div class="onoffswitch">
                                <input name="app_trace" id="app_trace" type="checkbox" {if $site_config.app_trace}checked{/if} class="onoffswitch-checkbox">
                                <label class="onoffswitch-label" for="app_trace">
                                    <span class="onoffswitch-inner"></span>
                                    <span class="onoffswitch-switch"></span>
                                </label>
                            </div>
						</div>
					</div>
					<div class="hr-line-dashed"></div>
					<div class="form-group">
						<label class="col-sm-3 control-label">调试类型：</label>
						<div class="input-group col-sm-4">
							<label class="checkbox-inline h5">
                                <input type="radio" name="site_config[trace][type]" value="Html" {if $site_config.trace.type=='Html'}checked{/if}> Html
							</label>
							<label class="checkbox-inline h5">
                                <input type="radio" name="site_config[trace][type]" value="Console" {if $site_config.trace.type=='Console'}checked{/if}> Console
							</label>
						</div>
					</div>
					<div class="hr-line-dashed"></div>
					<div class="form-group">
						<div class="col-sm-4 col-sm-offset-3">
							<button class="btn btn-primary" type="submit"><i class="fa fa-save"></i> 保存</button>
						</div>
					</div>
				</form>
			</div>
		</div>
	</div>
</div>
{/block} {block name="script"}
<script>
	//顶部导航
	$("#li-bar-site").addClass("active");
	//ajax表单提交
	$("#myForm").submit(function() {
		ajaxForm();
		return false;
	});
</script>
{/block}